package com.ryder.subject.domain.convert;

import com.ryder.subject.domain.entity.SubjectAnswerBO;
import com.ryder.subject.domain.entity.SubjectInfoBO;
import com.ryder.subject.infra.basic.entity.SubjectInfo;
import com.ryder.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述: 单选题答案bo转换
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025/02/05
 */

@Mapper
public interface RadioSubjectConvert {

    RadioSubjectConvert INSTANCE = Mappers.getMapper(RadioSubjectConvert.class);
    // BO转实体
    SubjectRadio convertBoToRadio(SubjectAnswerBO subjectAnswerBO);

    List<SubjectAnswerBO> convertEntityToBoList(List<SubjectRadio> subjectRadioList);
}
